#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int removeDuplicates(int* nums, int numsSize) {
	int end = 0;
	int start = 0;

	while (start < numsSize)
	{
		for (end = start + 1; end < numsSize; end++)
		{
			if (nums[end] == nums[start])
			{
				for (int i = end + 1; i < numsSize; i++)
				{
					nums[i - 1] = nums[i];
				}
				numsSize--;
				end--;
			}
		}
		start++;
	}
	return numsSize;
}

int main()
{
	int nums[] = { 0,0,1,1,1,2,2,3,3,4 };
	removeDuplicates(nums, 10);

	return 0;
}
